#ifndef JAPP_H
#define JAPP_H

#include <wx/app.h>

struct lua_State;

class JMainFrame;

class JApp:public wxApp
{
protected:
    JMainFrame * m_mainFrame;
public:
    inline JMainFrame* getMainFrame()const{return m_mainFrame;}
    JApp();
    virtual ~JApp();
    virtual bool OnInit();
    virtual int  OnExit();
    virtual wxAppTraits *CreateTraits();
public:
    bool do_login();


};


DECLARE_APP(JApp)


#endif // JAPP_H
